﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VegetableStoreBackJob.JsonObject
{
    public class ProductRoot
    {
        public ListNecessariesPricesService ListNecessariesPricesService { get; set; }
    }

    public class ListNecessariesPricesService
    {
        public int list_total_count { get; set; }
        public IList<Product> row { get; set; }
    }

    public class Product
    {
        public string M_NAME { get; set; } // 시장,마트 이름 - "농협 하나로마트 용산점",
        public int M_SEQ { get; set; }   // 시장,마트 번호 - 63,
        public DateTime P_YEAR_MONTH { get; set; } //"2013-08",
        public int M_GU_CODE { get; set; }  //"170000",
        public string M_GU_NAME { get; set; } //"용산구",
        public string ADD_COL { get; set; } //"3개 13700원", 
        public string M_TYPE_NAME { get; set; } //"대형마트",
        public int P_SEQ { get; set; }// 481824,
        public int A_PRICE { get; set; } //"4570",
        public string M_TYPE_CODE { get; set; }//"002",
        public string A_UNIT { get; set; }//"1개",
        public int A_SEQ { get; set; } //305,
        public DateTime P_DATE { get; set; } //"2013-08-29",
        public string A_NAME { get; set; }// "사과(부사, 300g)"
    }

    public class TraditionalMarketRoot
    {
         public ListTraditionalMarket ListTraditionalMarket { get; set; }
    }

    public class ListTraditionalMarket
    {
        public int list_total_count { get; set; }
        public IList<TraditionalMarket> row { get; set; }
    }

    public class TraditionalMarket
    {
        public double LAT { get; set; } //37.4967455,
        public string M_NAME { get; set; }// "강남시장",
        public double LNG { get; set; } // 126.9534877,
        public int M_CODE { get; set; } // "1",
        public string GUNAME { get; set; } // "강남구",
        public string M_ADDR { get; set; } // "신사동510-11",
        public string M_TEL { get; set; } // "542-0874"
    }
    
}
